// import com.alibaba.druid.sql.ast.SQLLimit_ptr;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MySqlShowWarningsStatement.h"
#include "../../visitor/MySqlASTVisitor.h"
#include "../../../../ast/SQLLimit.h"

BOOL_ptr MySqlShowWarningsStatement::isCount()
{
    return count;
}

void MySqlShowWarningsStatement::setCount(BOOL_ptr count)
{
    this->count = count;
}

SQLLimit_ptr MySqlShowWarningsStatement::getLimit()
{
    return limit;
}

void MySqlShowWarningsStatement::setLimit(SQLLimit_ptr limit)
{
    this->limit = limit;
}

void MySqlShowWarningsStatement::accept0(MySqlASTVisitor_ptr visitor)
{
    if (visitor->visit(SharedObject(MySqlShowWarningsStatement)))
    {
        acceptChild(visitor, limit);
    }
    visitor->endVisit(SharedObject(MySqlShowWarningsStatement));
}
